package wj.tree;

import wj.WJValue;

public class AtomNode implements WJNode {

	private WJValue value;
	
	public AtomNode(WJValue value){
		if(value == null)
			value = WJValue.NULL;
		this.value = value;
	}

	@Override
	public WJValue evaluate() {
		return value;
	}
	
	@Override
	public String toString(){
		return value.toString();
	}

}
